package com.yjd.msg.comm.dispose;

import com.alibaba.fastjson.JSON;
import com.yjd.comm.msg.MnsMsgInfo;
import com.yjd.comm.user.service.IUserService;
import com.yjd.msg.comm.listener.DefaulMsgDispose;
import org.apache.log4j.Logger;

import javax.annotation.Resource;

/**
 * 用户资金申请
 * Created by yjd-wap on 2018/1/26.
 */
public class UserFundApplyDispose implements DefaulMsgDispose {
    private static Logger logger = Logger.getLogger(UserFundApplyDispose.class);

    @Override
    public void process(MnsMsgInfo mnsMsgInfo) throws Exception {
        logger.info("用户资金申请处理器,获取阿里云消息："+JSON.toJSONString(mnsMsgInfo));
        userService.MsgDisposeDemo(mnsMsgInfo);
    }

    @Resource
    private IUserService userService;

}
